package com.liam.chinesevietnamesecorpus.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 邮箱验证码请求DTO
 * 
 * @author Liam
 */
@Data
public class EmailVerificationDTO {

    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    /**
     * 验证码类型：register-注册, reset-密码重置
     */
    @NotBlank(message = "验证码类型不能为空")
    private String type = "register";
}
